<html>
  <head>
    <title>ADMINISTER your timesheets</title>
    <%= stylesheet_link_tag "scaffold", "worklogs", "admin", :media => "all" %>
    <%= stylesheet_link_tag "print", :media => "print" %>
    <%= javascript_include_tag :defaults %>
    <%= stylesheet_auto_link_tags %>
    <%= javascript_auto_include_tags %>
    <!--%= javascript_include_tag 'behaviour' %-->
    <!--%= javascript_include_tag 'todo_lists' %-->

  </head>
  <body>
    <div id="banner">
      <img src="/images/logo_small.png" alt="The logo..."/>
      <div id="page_title">
        <%= @page_title || "Timesheets manager" %>
      </div>
    </div>
    <div id="columns">
      <div id="side">
        <%= link_to("Introduction", :controller => "login", :action => "help") %> <br />
        <%= link_to("We need you!", :controller => "login", :action => "needyou") %> <br />
        <hr/>
        <%if is_user_logged_in -%>
        <%= link_to("Clients", :controller => "clients", :action => "list") %> <br />
        <%= link_to("Projects", :controller => "projects", :action => "list") %> <br />
        <%= link_to("Worklogs", :controller => "worklogs", :action => "list") %> <br />
        <%= link_to("Reports", :controller => "reports", :action => "list_reports") %> <br />
        <hr/>
        <% if can_manage_users -%>
        <%= link_to("Add Users", :controller => "login", :action => "add_user") %> <br />
        <%= link_to("List Users", :controller => "login", :action => "list_users") %>
        <hr/>
        <%end-%>
        <%= link_to("Your profile", :controller => "login", :action => "profile") %> <br />
        <%= link_to("Logout", :controller => "login", :action => "logout") %>
        <%else-%>
        <%= link_to("Login", :controller => "login", :action => "login") %>
        <%end-%>
      </div>
      <div id="main">
        <% if flash[:notice] -%>
          <div id="notice"><%= flash[:notice] %></div>
          <script type="text/javascript" language="javascript" charset="utf-8">
          // <![CDATA[
              new Effect.Highlight('notice', {startcolor:"#6d8bed", duration:3});
          // ]]>
          </script>
        <% end -%>
        <%= @content_for_layout %>
      </div>
    </div>
    <div id="footer">
      &#169; 2006 <a href="http://www.coffeebreaks.org">coffeebreaks.org</a> - Powered by <a href="http://code.google.com/p/timereporter/">Time Reporter</a> - <a href="mailto:jerome@coffeebreaks.org">Contact</a>
    </div>
  </body>
</html>
